#ifndef _EVENT_HANDLER_H_
#define _EVENT_HANDLER_H_

#include <osgGA/GUIEventHandler>

class GLDrawer;

class EventHandler : public osgGA::GUIEventHandler
{
public:
	EventHandler(GLDrawer* drawer) : _drawer(drawer), _savedX(0), _savedY(0) {}

	bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *);

private:
	GLDrawer* _drawer;
	int _savedX;
	int _savedY;
	int _savedButton;
};

#endif // _EVENT_HANDLER_H_
